package com.kb.erp.mapper.sqlServer.flow;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kb.erp.entity.flow.Flowchart;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FlowchartMapper extends BaseMapper<Flowchart> {

    @Select("SELECT c.* FROM [dbo].[FlowChart] c WHERE c.definitionId IN (SELECT id FROM FormOrder WHERE definitionVersionsId = #{id})")
    public List<Flowchart> specialOrderProcess(String id);
}
